package com.design.pattern.create.factory.abstractFactory;

import com.design.pattern.entry.Bag;
import com.design.pattern.entry.Fruit;
import com.design.pattern.entry.bag.AppleBag;
import com.design.pattern.entry.fruit.Apple;

/**
 * 苹果工厂
 *
 * @author gyf
 * @create 2018-11-30 18:43
 **/
public class AppleFactory extends AbstractFactory {
    @Override
    public Fruit getFruit() {
        return new Apple();
    }

    @Override
    public Bag getBag() {
        return new AppleBag();
    }
}
